<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>设置</title>
    <meta name="keywords" content="课程学习问答系统">
    <meta name="description" content="课程学习问答系统">

    <script src="../static/js/jquery/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="../static/layui/layui.js" type="text/javascript"></script>
    <script src="../static/js/index/index.js" type="text/javascript"></script>
    <script src="../static/js/index/freezeheader.js" type="text/javascript"></script>
    <script src="../static/layui/lay/modules/layer.js" type="text/javascript"></script>
    <script src="../static/js/index/sliders.js" type="text/javascript"></script>
    <script src="../static/js/index/html5.js" type="text/javascript"></script>
    <script src="../static/js/index/set.js" type="text/javascript"></script>
    <link rel="stylesheet" href="../static/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="../static/layui/css/modules/layer/default/layer.css"/>
    <link rel="stylesheet" href="../static/css/global.css"/>
</head>
<body>
<%@ include file="header.jsp" %>

<div class="layui-container container" style="padding-top:70px;">

    <div class="main fly-user-main layui-clear">
        <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
            <li class="layui-nav-item">

                    <i class="layui-icon">&#xe612;</i>
                    用户中心
            </li>
        </ul>
        <div class="fly-panel fly-panel-user">
            <div class="layui-tab layui-tab-brief" lay-filter="user">
                <ul class="layui-tab-title" id="LAY_mine">
                    <li class="layui-this" lay-id="info">我的资料</li>
                   <%-- <li lay-id="avatar">头像</li>--%>
                    <li lay-id="pass">密码</li>
                </ul>
                <div class="layui-tab-content" style="padding: 20px 0;">
                    <div class="layui-form layui-form-pane layui-tab-item layui-show">
                        <form class="layui-form" method="post" action="/student/update">
                            <div class="layui-form-item">
                                <label for="L_username" class="layui-form-label">学生学号</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="userNumber" lay-verify="required" autocomplete="off"
                                           value="${student.studentNumber}"
                                           class="layui-input" readonly>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label for="L_username" class="layui-form-label">学生姓名</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="username" lay-verify="required" autocomplete="off"
                                           value="${student.studentName}"
                                           class="layui-input" readonly>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label for="L_username" class="layui-form-label">学生性别</label>
                                <div class="layui-input-inline">
                                    <div class="layui-inline">
                                        <div class="layui-input-inline">
                                            <c:set var="sex" scope="session" value="${student.studentSex}"></c:set>
                                            <c:if test="${sex==1}">
                                                <input type="radio" name="sex" value="1" checked title="男" readonly>
                                                <input type="radio" name="sex" value="0" title="女" readonly>
                                            </c:if>
                                            <c:if test="${sex==0}">
                                                <input type="radio" name="sex" value="1" title="男" readonly>
                                                <input type="radio" name="sex" value="0" checked title="女" readonly>
                                            </c:if>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">联系电话</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="phone" lay-verify="required|phone" autocomplete="off"
                                               class="layui-input" value="${student.studentTel}">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label for="L_username" class="layui-form-label">所学专业</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="studentSpecialty" lay-verify="required" autocomplete="off"
                                           value="${student.studentSpecialty}"
                                           class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label for="L_username" class="layui-form-label">学生所在班级</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="studentClass" lay-verify="required"
                                           autocomplete="off" value="${student.studentClass}" class="layui-input">
                                </div>
                            </div>


                            <div class="layui-form-item">
                                <button class="layui-btn" lay-filter="*" lay-submit>确认修改
                                </button>
                            </div>
                        </form>
                    </div>



                    <div class="layui-form layui-form-pane layui-tab-item">
                        <form class="layui-form" method="get" action="/student/upPwd">
                            <div class="layui-form-item">
                                <label for="L_pass" class="layui-form-label">新密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" id="L_pass" name="password" lay-verify="required"
                                           autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-form-mid layui-word-aux">6到16个字符</div>
                            </div>
                            <div class="layui-form-item">
                                <label for="L_repass" class="layui-form-label">确认密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" id="L_repass" name="rePassword" lay-verify="required"
                                           autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <button class="layui-btn" lay-filter="" lay-submit>确认修改</button>
                            </div>
                        </form>
                        <span>${msg}</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<%@ include file="footer.jsp" %>
</html>